import request from '@/utils/request'

export default {

    //分页查询评论
    getPageList(current, limit, courseId) {
        return request({
            url: `/eduservice/educomment/pageComment/${current}/${limit}`,
            method: 'post',
            params: { courseId }
            // data: courseId
        })
    },
    //新增评论
    addComment(comment) {
        return request({
            url: '/eduservice/educomment/insertComment',
            method: 'post',
            data: comment
        })
    }
}